package com.ajr.core;

import java.sql.Date;

public class ArticleObject {

	String name;
	String number;
	double price = 0;
	double quantity = 0;
	double tax = 0;
	double supplierPrice = 0;
	
	String economic_unit;
	public String getEconomic_unit() {
		return economic_unit;
	}

	public void setEconomic_unit(String economicUnit) {
		economic_unit = economicUnit;
	}

	public int getAccount() {
		return account;
	}

	public void setAccount(int account) {
		this.account = account;
	}

	int account = 0;
	
	public double getSupplierPrice() {
		return supplierPrice;
	}

	public void setSupplierPrice(double supplierPrice) {
		this.supplierPrice = supplierPrice;
	}

	OrderProductAttributes orderProductAttributes;
	private double discount;
	private String batch;
	private Date datePurchased;
	private Date lastModified;
	private double vatValue = 0;
//	private int languageId;

	public void setVatValue(double vatValue) {
		this.vatValue = vatValue;
	}

	public OrderProductAttributes getOrderProductAttributes() {
		return orderProductAttributes;
	}

	public double getTax() {
		return tax;
	}

	public void setTax(double tax) {
		this.tax = tax;
	}

	public double getQuantity() {
		return quantity;
	}

	public void setQuantity(double quantity) {
		this.quantity = quantity;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setOrderProductAttributes(
			OrderProductAttributes orderProductAttributes) {
		this.orderProductAttributes = orderProductAttributes;
	}

	public void setDiscount(double double1) {
		this.discount = double1;
		
	}

	public double getDiscount() {
		return discount;
	}

	public String getTaxCode() {
		int taxCode = 25;
		if(tax == 0) {
			taxCode = 0;
		}
		if(tax == 6) {
			taxCode = 3;
		}
		if(tax == 12) {
			taxCode = 2;
		}
		if(tax == 25) {
			taxCode = 1;
		}
		return String.valueOf(taxCode);
	}

	public void setProcutBatch(String batch) {
		this.batch = batch;
		
	}
	public String getProcutBatch() {
		return this.batch;
		
	}

	public void setDatePurchased(Date date) {
		this.datePurchased = date;
		
	}

	public Date getDatePurchased() {
		return datePurchased;
	}

	public void setLastModified(Date date) {
		this.lastModified = date;
		
	}

	public Date getLastModified() {
		return lastModified;
	}

	public double getVatValue() {
		// TODO Auto-generated method stub
		return vatValue ;
	}

/*	public void setLanguageId(int int1) {
		this.languageId = int1;
		
	}

	public int getLanguageId() {
		return languageId;
	}
*/}
